<template>
  <Item :data="item"></Item>
</template>

<script>
export default {
    data() {
        return {
            id:"",
            item:""
        }
    },
    mounted() {
        var {id}=this.$route.params;
        this.id=id;
        this.$http.get(`http://47.108.197.28:4000/api/movieDetail?id=${id}`).then((res)=>{
        this.item=res.data.res[0];
        var {pic}=this.item;
        this.item.img=pic;
        console.log(res);
        // this.data=item
        // console.log(this.data);
        
    })
    },
}
</script>

<style>

</style>